<!--交通事故月报表-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="8">
                <el-form-item label="报考月份">
                     <el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.yue" type="date"></el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                <el-form-item label="名称">
                    <el-input size="small" v-model="form.ming"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                 <el-button type="primary" style=" margin-left: 10px;">搜索</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">交通事故月报列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车队名称" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="报表月份" prop="a2">
            </el-table-column>
            <el-table-column
                label="事故总计" prop="a3">
            </el-table-column>
            <el-table-column
                label="已结案合计" prop="a4">
            </el-table-column>
            <el-table-column
                label="定损金额合计" prop="a5">
            </el-table-column>
            <el-table-column
                label="赔付金额合计" prop="a6">
            </el-table-column>
            <el-table-column
                label="违规金额合计" prop="a7">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
                  yue:''
              },
              tabledata:[
                {
                    a1: '奔驰车队',
                    a2: '2018-10',
                    a3: '1',
                    a4: '1',
                    a5: '￥200',
                    a6: '￥200',
                    a7: '￥200',
                },
                {
                    a1: '奥迪车队',
                    a2: '2018-10',
                    a3: '暂无',
                    a4: '0',
                    a5: '0',
                    a6: '0',
                    a7: '0',
                },
                {
                    a1: '宝马车队',
                    a2: '2018-10',
                    a3: '暂无',
                    a4: '2',
                    a5: '1',
                    a6: '￥400',
                    a7: '￥400',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },

        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
